package com.treasure.mall.zbq.common.ienum.withdraw;

import com.treasure.mall.zbq.common.ienum.base.CodeDescCommonEnum;

/**
 * @author zoul
 * @version 1.0
 * @date 2020/6/14 15:06
 * @Description 提现相关枚举
 */
public interface WithdrawEnums {
    /**
     * 提现状态
     */
    enum WithdrawStatus implements CodeDescCommonEnum {
        /**
         * 待审核
         */
        APPROVAL_ING(0, "待审核"),
        /**
         * 审核通过
         */
        APPROVAL_SUCCESS(1, "审核通过"),
        /**
         * 审核失败
         */
        APPROVAL_FAIL(2, "审核失败"),
        /**
         * 发放成功
         */
        GRANT_SUCCESS(3, "发放成功"),
        /**
         * 发放失败
         */
        GRANT_FAIL(4, "发放失败"),
        /**
         * 取消
         */
        CANCEL(5, "取消");
        private Integer code;
        private String desc;

        WithdrawStatus(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        @Override
        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }

    /**
     * 提现类型
     */
    enum WithdrawType implements CodeDescCommonEnum {
        /**
         * 余额
         */
        WITHDRAW_BALANCE(0, "余额"),
        /**
         * 货款
         */
        WITHDRAW_GOODS(1, "货款");
        private Integer code;
        private String desc;

        WithdrawType(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        @Override
        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        @Override
        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }
    }
}
